package com.ffmpeg.demo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.io.IOException;

@Controller
public class Converter {

    @GetMapping("/")
    public String convert(HttpServletRequest request) {
        HttpSession session = request.getSession();
        try {
            //ConvertUtils.convert();
            return "index";
        } catch (Exception e) {
            e.printStackTrace();
            return "fail";
        }
    }
}
